import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SCrossCopyChannel
    
    export  class SCrossCopyChannel extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SCrossCopyChannel();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.channelId);
            arg1.writeInt(this.copyCode);
            arg1.writeInt(this.id);
            arg1.writeString(this.url);
            arg1.writeString(this.publicUrl);
            arg1.writeInt(this.type);
            arg1.writeString(this.ltUrl);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.channelId = arg1.readInt();
            this.copyCode = arg1.readInt();
            this.id = arg1.readInt();
            this.url = arg1.readString();
            this.publicUrl = arg1.readString();
            this.type = arg1.readInt();
            this.ltUrl = arg1.readString();
            return;
        }

        public /* const */_type: int=269;

        public /* var */channelId: int;

        public /* var */copyCode: int;

        public /* var */id: int;

        public /* var */url: string;

        public /* var */publicUrl: string;

        public /* var */type: int;

        public /* var */ltUrl: string;

        public static /* var */_regist: SCrossCopyChannel;
    }

            SCrossCopyChannel._regist = new SCrossCopyChannel(true);
        